package com.hanhai.zrb.api.util;

import java.util.HashMap;
import java.util.List;
import java.util.Map;

import com.hanhai.zrb.model.user.User;

public class UserUtil {

	public static Map<Long, User> userListToMap(List<User> toUserList) {
		Map<Long, User> toUserMap = new HashMap<Long, User>();
		if (toUserList != null && toUserList.size() > 0) {
			for (User user : toUserList) {
				toUserMap.put(user.getUid(), user);
			}
		}
		return toUserMap;
	}

}
